package com.example.demo.prototype;

/**
 * @Description
 * @Author youxin
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2022/1/10
 */
public class Client {
    public static void main(String[] args) {
        Sheep sheep1=new Sheep("克隆羊",21);
        Sheep sheep2 = (Sheep) sheep1.clone();
        Sheep sheep3 = (Sheep) sheep1.clone();
        Sheep sheep4 = (Sheep) sheep1.clone();
        Sheep sheep5 = (Sheep) sheep1.clone();
        System.out.println("sheep1=>"+sheep1);
        System.out.println("sheep2=>"+sheep2);
        System.out.println("sheep3=>"+sheep3);
        System.out.println("sheep4=>"+sheep4);
        System.out.println("sheep5=>"+sheep5);
    }
}
